﻿<%@ Page Title="Send message to list" Language="C#" MasterPageFile="~/Pages/Site.Master" AutoEventWireup="true" CodeBehind="SendMessage.aspx.cs" Inherits="Altairis.MailToolkit.ListManager.Pages.Admin.SendMessage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <h1><asp:Localize runat="server" Text="Send message to list" /> </h1>
    <div class="form">
        <asp:MultiView ID="MultiViewPage" runat="server" ActiveViewIndex="0">
            <asp:View ID="ViewForm" runat="server">
                <p>
                    <asp:Label Text="List name:" runat="server" AssociatedControlID="ListName" />
                    <br />
                    <asp:DropDownList ID="ListName" runat="server" />
                </p>
                <p>
                    <asp:Label runat="server" Text="Subject:" AssociatedControlID="SubjectTextBox" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="SubjectTextBox" Display="None" ErrorMessage="Subject is missing" />
                    <br />
                    <asp:TextBox ID="SubjectTextBox" runat="server" />
                </p>
                <p>
                    <asp:Label runat="server" Text="Body:" AssociatedControlID="BodyTextBox" />
                    <asp:RequiredFieldValidator runat="server" ControlToValidate="BodyTextBox" Display="None" ErrorMessage="Body is missing" />
                    <br />
                    <asp:TextBox ID="BodyTextBox" runat="server" TextMode="MultiLine" Height="400px" />
                </p>
                <div class="buttons">
                    <asp:ValidationSummary runat="server" />
                    <asp:Button ID="SubmitButton" Text="Submit" runat="server" OnClick="SubmitButton_Click" />
                </div>
            </asp:View>
            <asp:View ID="ViewResult" runat="server">
                <p>
                    <asp:Localize runat="server" Text="Message was sent successfully." />
                </p>
                <div class="buttons">
                    <asp:Button ID="BackButton" Text="Back" runat="server" OnClick="BackButton_Click" />
                </div>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>
